package top.hg.tool.modules.car;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import top.hg.tool.modules.car.article.ArticleService;

/**
 * created by skh on 2019/7/24
 */
@Component
public class TimeTask {
	@Autowired
	private ArticleService articleService;

	//每天上午8点，下午2点，8点
//	@Scheduled(cron = "0 0 8,14,20 * * ? ")
//	public void refreshArticleReadCount(){
//		articleService.refreshArticleReadCount();
//	}

	////每天上午6点
	//@Scheduled(cron = "0 0 6 * * ? ")
	//public void refreshArticleReadCount(){
	//	articleService.refreshArticleReadCount();
	//}
}
